 require.config({
     baseUrl: '/Javascripts',
     paths: {
         jquery: 'vendor/jquery/jquery',
         leaflet: 'vendor/leaflet/leaflet',
         leafletdraw: 'vendor/leaflet/leaflet.draw',
         semantic: 'vendor/semantic/semantic',
         highcharts: 'vendor/highcharts/highcharts',
         crossingSpecificValue: 'vendor/highcharts/crossingSpecificValue',
         exporting: 'vendor/highcharts/exporting',
         jsonpack: 'vendor/jsonpack/jsonpack',
         calendar: 'vendor/jquery/jquery.calendar',
         slides: 'vendor/jquery/jquery.slides',
         leafletawe: 'vendor/leaflet/leaflet.awesome-markers',
         base64: 'vendor/base64.min',
         canvg: 'vendor/canvg/canvg',
         rgbcolor: 'vendor/canvg/rgbcolor',
         StackBlur: 'vendor/canvg/StackBlur',
         jspdf: 'vendor/jsPDF/jspdf',
         jspdfAddImage: 'vendor/jsPDF/jspdf.plugin.addimage',
         FileSaver: 'vendor/jsPDF/FileSaver.min',
         angularUiRouter: 'vendor/angular/angular-ui-router.min'
     },
     shim: {
         'leaflet': {
             'exports': 'leaflet'
         },
         'leafletawe': ['leaflet'],
         'jquery': {
             'exports': 'jquery'
         },
         'jsonpack': {
             'exports': 'jsonpack'
         },
         'calendar': ['jquery'],
         'slides': ['jquery'],
         'semantic': ['jquery'],
         'highcharts': ['jquery'],
         'crossingSpecificValue': ['jquery', 'highcharts'],
         'exporting': ['jquery', 'highcharts'],
         'leafletdraw': ['leaflet'],
         'jspdfAddImage': ['jspdf']
     }
 });

 require(['angularUiRouter', 'leaflet', 'leafletawe', 'app', 'jquery', 'slides', 'base64'], function() {
     'use strict';
     L.Icon.Default.imagePath = 'Stylesheets/leaflet/images';
     //手动启动app
     var htmlElement = document.getElementsByTagName("html")[0];
     var $html = angular.element(htmlElement);
     $html.attr("data-ng-app", "App");
     angular.element().ready(function() {
         angular.bootstrap($html, ["App"]);
     });
 });
